Assignemnt #67 and 65th program

Code

///Name: Derrick Andreasen
///Period: 7
///Program name: 65th Program
///File name: Sixt5Prog.java
///Date Finished:11/19/2015

import java.util.Scanner;

public class Sixt5Prog
{
	public static void main( String[] args )
	{
       Scanner keyboard = new Scanner(System.in);
        
       int n, c = 0;
        
        System.out.println( "I will add up the numbers you give me." );
        
        System.out.print( "Number: " );
            n = keyboard.nextInt();
            System.out.println( "The total so far is " + n );
    
        while (n != 0)
        {
            c = c + n;
            System.out.print( "Number: " );
            n = keyboard.nextInt();
       
            
            System.out.println( "The total so far is " + c );
        }
    }
}

Picture of the output

Assignment 67